import request from '@/utils/request'

//请求表格内容 /manage/content/getList get 
export const reqGetList = () => {
    return request({
        url: '/manage/content/getList',
        method: 'get'
    })
}
//收藏 /manage/content/topContent  POST
export const reqTopConten = (data) => {
    return request({
        url: '/manage/content/topContent',
        method: 'post',
        data
    })
}
//收藏后重新请求参数 /manage/content/getList get 
export const reqGetListAgain = (params) => {
    return request({
        url: '/manage/content/getList',
        method: 'get',
        params
    })
}
//置顶 /manage/content/roofContent  POST 
export const reqRoofContent = (data) => {
    return request({
        url: '/manage/content/roofContent',
        method: 'post',
        data
    })
}

//添加按钮  /manage/content/addOne post  
export const reqAddOne = (data) => {
    return request({
        url: '/manage/content/addOne',
        method: 'post',
        data
    })
}
//標籤 /manage/contentTag/getList get 
export const reqGetListTags = (params) => {
    return request({
        url: '/manage/contentTag/getList',
        method: 'get',
        params
    })
}
//獲取練級節點 /manage/contentCategory/getList get 
export const reqCategory = () => {
    return request({
        url: '/manage/contentCategory/getList',
        method: 'get',
    })
}

//刪除 /manage/content/deleteContent get
export const reqDeleteContent = (params) => {
    return request({
        url: '/manage/content/deleteContent',
        method: 'get',
        params
    })
}
//更新 /manage/content/updateOne  
export const reqUpdateOne = (data) => {
    return request({
        url: '/manage/content/updateOne  ',
        method: 'post',
        data
    })
}

//遠程搜索框  /manage/regUser/getList  searchkey:   get  
export const reqRegUser = (params) => {
    return request({
        url: '/manage/regUser/getList',
        method: 'get',
        params
    })
}

//编辑页面信息 /api/content/getOneContentCover  get 
export const reqContentEdit = (params) => {
    return request({
        url: '/api/content/getOneContentCover',
        method: 'get',
        params
    })
}

//绑定编辑 /manage/content/updateContentEditor  post 
export const reqEditor = (data) => {
    return request({
        url: '/manage/content/updateContentEditor',
        method: 'post',
        data
    })
}

//獲取編輯人信息 /manage/getUserSession get 
export const reqUserSession = () => {
    return request({
        url: '/manage/getUserSession',
        method: 'get',
    })
}

// //分类搜索框 /manage/content/getList get
// export const reqCatePage = (params) => {
//     return request({
//         url: '/manage/content/getList',
//         method: 'get',
//         params
//     })
// }

//请求分页数据 /manage/content/getList get 
export const reqGetPage = (params) => {
    return request({
        url: '/manage/content/getList',
        method: 'get',
        params
    })
}